/*
 * Improbability Drive
 * Phillip Cardon, Thach Nguyen, Cristopher Claeys
 * 4/26/2011
 */

package structures;

/**
 * Tuple, used to store two elements of any object type.
 * @author Phillip Cardon
 *
 */
public class Tuple<T, T1> {
	/**
	 * Object 1
	 */
	private final T myFirstObject;
	
	/**
	 * Object 2
	 */
	private final T1 mySecondObject;
	
	/**
	 * Constructor
	 * @param theFirst object to store.
	 * @param theSecond object to store.
	 */
	public Tuple(T theFirst, T1 theSecond) {
		myFirstObject = theFirst;
		mySecondObject = theSecond;
	}
	
	/**
	 * getFirst stored object.
	 * @return first stored object.
	 */
	public T getFirst() {
		return myFirstObject;
	}
	
	/**
	 * getSecond stored object.
	 * @return second stored object.
	 */
	public T1 getSecond() {
		return mySecondObject;
	}
}
